package com.jay.test.designModel.action.strategy.example;

/**
 * Created by caoyuan7 on 2018/11/1.
 */
public class AdvancedMemberStrategy implements MemberStrategy {

    @Override
    public double calcPrice(double booksPrice) {

        System.out.println("对于高级会员的折扣为20%");
        return booksPrice * 0.8;
    }
}